package com.example.pojo;

import lombok.Data;

@Data
public class ScoreResult {
    private Boolean success;//编码
    private String msg;//错误信息
    private Object data;//数据

    public static ScoreResult success(Object data) {
        ScoreResult scoreResult = new ScoreResult();
        scoreResult.success = true;
        scoreResult.msg = "success";
        scoreResult.data = data;
        return scoreResult;
    }
    public static ScoreResult fail() {
        ScoreResult scoreResult = new ScoreResult();
        scoreResult.success = false;
        scoreResult.msg = "fail";
        return scoreResult;
    }
}
